package com.sise.controller;

import com.sise.bean.BackStageOrderDetailBean;
import com.sise.service.IOrderDetailService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zj
 */
@RestController
@RequestMapping("/sise/order-detail")
public class OrderDetailController {
    @Resource
    private IOrderDetailService iOrderDetailService;

    @RequestMapping("/getOrderDetailByOrderId")
    public List<BackStageOrderDetailBean> getOrderDetailByOrderId(String orderId) {
        return iOrderDetailService.getOrderDetailByOrderId(orderId);
    }
}
